from os import path

from google.appengine.ext.webapp import template
template.register_template_library('template_filters')

DEBUG = True


def Render(template_dir, template_name, **values):
  """Render HTML from specified template and values.
  """
  target = path.join(template_dir, template_name)
  return template.render(target, values, debug=DEBUG)
